const { baseModel } = require('./baseModel')
const mongoose = require('mongoose')
const menuAndJobSchema = new mongoose.Schema({
    // 菜单id关联菜单表
    mid:{
        required:true,
        type:mongoose.Schema.Types.ObjectId,
        ref:'Menus'
    },
    //职位id关联职位表
    jid:{
        required:true,
        type:mongoose.Schema.Types.ObjectId,
        ref:'Job'
    },
    ...baseModel
})
module.exports=menuAndJobSchema